package com.neutech.runtime;

import com.neutech.base.Constant;
import com.neutech.base.Sprite;
import com.neutech.util.ImageUtil;

import java.awt.*;

public class StartButton extends Sprite {
    private Image image;

    public StartButton(){
        image = ImageUtil.get("sb");
        setX(Constant.WINDOW_WIDTH / 2 - image.getWidth(null) / 2);
        setY(Constant.WINDOW_HEIGHT / 2 - image.getHeight(null) / 2);
    }
    @Override
    public void draw(Graphics g) {
        g.drawImage(image,getX(),getY(),null);
    }
}
